<?php
namespace app\business\controller;
use app\business\model\BusinessLogin;
use app\business\model\BusinessTable;
use app\business\model\BusinessTableClassify;
use think\Controller;
use app\business\controller\Base;
use think\Session;

class Email extends Base
{
    public function index()
    {
       //var_dump(session::get('business_id'));die;

       $info = db('info')->find(session::get('business_id'));

       $this->assign('data',$info);

       return $this->fetch();
       //var_dump($info);die;

    }


    public function update()
    {
        $data = input('post.');

        $data['id'] = session::get('business_id');
//var_dump($data);die;
        db('info')->update($data);

        return $this->success('配置成功！');
    }
}